package com.example.template;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import tk.mybatis.spring.annotation.MapperScan;

@MapperScan(value = {"com.example.template.*.mapper"})
@SpringBootApplication
public class DemoTemplateApplication extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(
            SpringApplicationBuilder application) {
        return application.sources(DemoTemplateApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(DemoTemplateApplication.class, args);
    }


}
